<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<input type="hidden" name="zh_parsen/fzr_name" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>"/>
<input type="hidden" name="zh_parsen/fzr_mobile" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>"/>
<input type="hidden" name="zh_parsen/fzr_tel" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>"/>
<input type="hidden" name="zh_parsen/fzr_email" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>"/>

<input type="hidden" id="if_have_org" name="proposal/if_have_org">

<div class="t_bar"><span class="color_red"></span>中试基地申报主体基本情况</div>
<table class="t_css" width="100%" id="basic_info_zs" border="0" cellpadding="0"
       cellspacing="1">
    <col style="width: 14%"/>
    <col style="width: 13%"/>
    <col style="width: 13%"/>
    <col style="width: 14%"/>
    <col style="width: 16%"/>
    <col style="width: 40%"/>
    <tr>
        <td align="right"><span class="color_red">*</span>申报主体名称（全称）：</td>
        <td colspan="2">
            <input name="proposal/zs_declare_name" class="required" label="申报主体名称" maxlength="100" value="<x:out select="$xmlData/data/proposal/zs_declare_name"/>" />
        </td>
        <td align="right"><span class="color_red">*</span>申报主体类型：</td>
        <td colspan="2">
<%--            <input name="proposal/zs_declare_name_type" value="<x:out select="$xmlData/data/proposal/zs_declare_name_type"/>" />--%>
    <c:set var="zs_declare_type_value"><x:out select="$xmlData/data/proposal/zs_declare_type_value" /></c:set>
    <c:set var="zs_decl_type">
        {'grant_code':'<x:out select="$xmlData/data/proposal/zs_decl_type" />','stat_year':'${statYear}'}
    </c:set>
    <input name="proposal/zs_declare_type_value"  type="hidden" value="<x:out select="$xmlData/data/proposal/zs_declare_type_value" />" />
    <input name="proposal/zs_declare_type_name" class="required" label="申报主体类型" type="hidden" value="<x:out select="$xmlData/data/proposal/zs_declare_type_name" />" />
    <cpt:select style="width: 100px;" id="zs_declare_type" key="zsjdba02" className="selectWidth2" onChange="initControlValue('zs_declare_type'); diagnose()" value="${zs_declare_type_value}"></cpt:select>
    <input id="qwq" label="申报主体类型/其他" <c:if test="${zs_declare_type_value eq 6}"> class="required" style="display:block;width: 250px;"</c:if>  <c:if test="${zs_declare_type_value ne 6}"> style="display:none;width: 250px;"</c:if>maxlength="20" name="proposal/rest_terms2" value="<x:out select="$xmlData/data/proposal/rest_terms2" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" ><span class="color_red">*</span>注册资金（万元）：</td>
        <td align="left" colspan="2">
            <input style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" class="required" label="注册资金" name="proposal/zs_register_money" value="<x:out select="$xmlData/data/proposal/zs_register_money"/>"/>
        </td>
        <td align="right" ><span class="color_red">*</span>成立时间:</td>
        <td align="left" colspan="2">
<%--            <input name="proposal/zs_founding_time" class="required" label="成立时间" value="<x:out select="$xmlData/data/proposal/zs_founding_time"/>" />--%>

            <c:set var="zs1_submit_date"><x:out select="$xmlData/data/proposal/zs1_submit_date" /></c:set>
            <cpt:date id="zs1_submit_date" name="proposal/zs1_submit_date" value="${zs1_submit_date}" className=" required date" label="成立时间"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>是否联合申报：</td>
        <td colspan="2">
            <c:set var="consolidated_returns_value"><x:out select="$xmlData/data/proposal/consolidated_returns_value"/></c:set>
            <cpt:select id="consolidated_returns" key="yesorno" style="width:100px" className="selectWidth2"  onChange="initControlValue('consolidated_returns_value');diagnose()" value="${consolidated_returns_value}"></cpt:select>
            <input name="proposal/consolidated_returns_value" id="consolidated_returns_value" type="hidden" value="<x:out select="$xmlData/data/proposal/consolidated_returns_value" />"  />
            <input name="proposal/consolidated_returns_name" class="required" label="是否联合申报" id="consolidated_returns_name" type="hidden" value="<x:out select="$xmlData/data/proposal/consolidated_returns_name"/>"/>
            <%--            <input  name="social_effect/establish_associations" label="服务社会情况-->是否牵头成立行业协会" type="text" class="input_css text_right required "  style="width: auto;text-align: right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/social_effect/incubated_enterprises_high" />"/>--%>
            <input id="or_not" label="是否联合申报/是" <c:if test="${consolidated_returns_value eq '01'}"> class="required" style="display:block;width: 290px;"</c:if>  <c:if test="${consolidated_returns_value ne '01'}"> style="display:none;width: 290px;"</c:if>maxlength="100" name="proposal/rest_for" value="<x:out select="$xmlData/data/proposal/rest_for" />"/>
        </td>
        <td align="right"><span class="color_red">*</span>归口管理部门：</td>
        <td colspan="2">
            <c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
            <cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang " readonly="true" value="${recomend_org}"  id="recomend_org" showPattern="all" shieldPattern="0"
                      topCheckbox="false" onClick="initTreeValueExt" />
            <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value" style="width: 80%;" class="required" value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理部门">
            <input type="hidden" name="proposal/recomend_org_name" style="width: 80%;" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
        </td>
    </tr>
    <tr>
        <td align="right" rowspan="4">中试基地负责人：</td>
        <td align="right">姓名：</td>
        <td>
            <span name="zh_person/basic_info/zh_name"><x:out select="$xmlData/data/zh_persons/zh_person/basic_info/zh_name"/> </span>
        </td>
        <td align="right">性别：</td>
        <td colspan="2">
            <span name="zh_person/basic_info/gender_name">
            <c:set var="gender_value"><x:out select="$xmlData/data/zh_persons/zh_person/basic_info/gender_value"/></c:set>
            <c:if test="${gender_value eq 'M' }">男</c:if>
            <c:if test="${gender_value eq 'F' }">女</c:if>
             </span>
        </td>
    </tr>
    <tr>
        <td align="right">最高学历：</td>
        <td>
            <span name="basic_info/educate_name"><x:out select="$xmlData/data/zh_persons/zh_person/basic_info/educate_name"/> </span>        </td>
        </td>
        <td align="right">职务：</td>
        <td colspan="2">
        <span name="basic_info/position"><x:out select="$xmlData/data/zh_persons/zh_person/basic_info/position"/></span>
        </td>
    </tr>
    <tr>
        <td align="right">学位：</td>
        <td>
            <span name="basic_info/degree_name">
           <x:out select="$xmlData/data/zh_persons/zh_person/basic_info/degree_name"/>
             </span>
        </td>
        <td align="right">职称：</td>
        <td colspan="2">
            <span name="basic_info/prof_title_name">
            <x:out select="$xmlData/data/zh_persons/zh_person/basic_info/prof_title_name"/>
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">联系电话：</td>
        <td colspan="2">
            <span name="zh_persons/zh_person"><x:out select="$xmlData/data/zh_persons/zh_person/contact/tel_work"/> </span>
        </td>
        <td  align="right" ><span class="color_red">*</span>申报日期：</td>
        <td>
            <c:set var="submit_date">
                <x:out select="$xmlData/data/proposal/submit_date" />
            </c:set>
            <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期" ></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>联系人：</td>
        <td>
            <input name="proposal/zs_linkman" maxlength="100" class="required" label="联系人" value="<x:out select="$xmlData/data/proposal/zs_linkman"/>" />
        </td>
        <td align="right"><span class="color_red">*</span>联系电话：</td>
        <td>
            <input name="proposal/zs_link_phone" onfocus="InitInput.setNumber(this,11,0,0);" class="required" label="联系电话" value="<x:out select="$xmlData/data/proposal/zs_link_phone"/>" />
        </td>
        <td align="right"><span class="color_red">*</span>手机：</td>
        <td>
            <input name="proposal/zs_mobile"onfocus="InitInput.setNumber(this,11,0,0);" class="input_css required mobile" label="手机" value="<x:out select="$xmlData/data/proposal/zs_mobile"/>" />
        </td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>Email：</td>
        <td colspan="2">
            <input name="proposal/zs_email"  class="input_css required email" maxlength="20" label="Email" value="<x:out select="$xmlData/data/proposal/zs_email"/>" />
        </td>
        <td align="right"><span class="color_red">*</span>传真：</td>
        <td colspan="2">
            <input name="proposal/zs_facsimile" maxlength="35" class="input_css required" label="传真" value="<x:out select="$xmlData/data/proposal/zs_facsimile"/>" />
        </td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>近两年是否有环保处罚记录：</td>
        <td colspan="5">
            <c:set var="environmentally_friendly_punish_value"><x:out select="$xmlData/data/proposal/environmentally_friendly_punish_value"/></c:set>
            <cpt:select id="environmentally_friendly_punish" key="yesorno" style="width:100px" className="selectWidth2"  onChange="initControlValue('environmentally_friendly_punish_value');diagnose()" value="${environmentally_friendly_punish_value}"></cpt:select>
            <input name="proposal/environmentally_friendly_punish_value" id="environmentally_friendly_punish_value" type="hidden" value="<x:out select="$xmlData/data/proposal/environmentally_friendly_punish_value" />"  />
            <input name="proposal/environmentally_friendly_punish_name" label="近两年是否有环保处罚记录"  class="required" id="environmentally_friendly_punish_name" type="hidden" value="<x:out select="$xmlData/data/proposal/environmentally_friendly_punish_name"/>"/>
            <%--            <input  name="social_effect/establish_associations" label="服务社会情况-->是否牵头成立行业协会" type="text" class="input_css text_right required "  style="width: auto;text-align: right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/social_effect/incubated_enterprises_high" />"/>--%>
            <input id="or_not01" label="近两年是否有环保处罚记录/是" <c:if test="${environmentally_friendly_punish_value eq '01'}"> class="required" style="display:block;width: 290px;"</c:if>  <c:if test="${environmentally_friendly_punish_value ne '01'}"> style="display:none;width: 290px;"</c:if>maxlength="200" name="proposal/rest_for2" value="<x:out select="$xmlData/data/proposal/rest_for2" />"/>

        </td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>近两年是否有生产安全责任事故：</td>
        <td colspan="5">
            <c:set var="safety_accident_value"><x:out select="$xmlData/data/proposal/safety_accident_value"/></c:set>
            <cpt:select id="safety_accident" key="yesorno" style="width:100px" className="selectWidth2"  onChange="initControlValue('safety_accident_value');diagnose()" value="${safety_accident_value}"></cpt:select>
            <input name="proposal/safety_accident_value" id="safety_accident_value" type="hidden" value="<x:out select="$xmlData/data/proposal/safety_accident_value" />"  />
            <input name="proposal/safety_accident_name" label="近两年是否有生产安全责任事故"  class="required" id="safety_accident_name" type="hidden" value="<x:out select="$xmlData/data/proposal/safety_accident_name"/>"/>
            <%--            <input  name="social_effect/establish_associations" label="服务社会情况-->是否牵头成立行业协会" type="text" class="input_css text_right required "  style="width: auto;text-align: right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/social_effect/incubated_enterprises_high" />"/>--%>
            <input id="or_not02" label="近两年是否有生产安全责任事故/是" <c:if test="${safety_accident_value eq '01'}"> class="required" style="display:block;width: 290px;"</c:if>  <c:if test="${safety_accident_value ne '01'}"> style="display:none;width: 290px;"</c:if>maxlength="200" name="proposal/rest_for3" value="<x:out select="$xmlData/data/proposal/rest_for3" />"/>

        </td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>是否有科技成果转化的相关经验：</td>
        <td colspan="5">
            <c:set var="technologies_experiences_value"><x:out select="$xmlData/data/proposal/technologies_experiences_value"/></c:set>
            <cpt:select id="technologies_experiences" key="yesorno" style="width:100px" className="selectWidth2"  onChange="initControlValue('technologies_experiences_value');diagnose()" value="${technologies_experiences_value}"></cpt:select>
            <input name="proposal/technologies_experiences_value" id="technologies_experiences_value" type="hidden" value="<x:out select="$xmlData/data/proposal/technologies_experiences_value" />"  />
            <input name="proposal/technologies_experiences_name" label="是否有科技成果转化的相关经验"  class="required" id="technologies_experiences_name" type="hidden" value="<x:out select="$xmlData/data/proposal/technologies_experiences_name"/>"/>
            <%--            <input  name="social_effect/establish_associations" label="服务社会情况-->是否牵头成立行业协会" type="text" class="input_css text_right required "  style="width: auto;text-align: right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/social_effect/incubated_enterprises_high" />"/>--%>
            <input id="or_not03" label="是否有科技成果转化的相关经验/是" <c:if test="${technologies_experiences_value eq '01'}"> class="required"  style="display:block;width: 290px;"</c:if>  <c:if test="${technologies_experiences_value ne '01'}"> style="display:none;width: 290px;"</c:if>maxlength="200" name="proposal/rest_for4" value="<x:out select="$xmlData/data/proposal/rest_for4" />"/>

        </td>
    </tr>
    <tr>
        <td align="right">单位地址：</td>
        <td colspan="3">
                <span name="organizations/organization/address">
				    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" />
		        </span>
        </td>
    </tr>
    <tr>
        <td align="center" rowspan="4">获得资质情况</td>

        <td align="center" rowspan="2">国家级资质</td>
        <td align="center" colspan="2" >认定时间</td>

        <td align="center" colspan="2">认定资质名称</td>
    </tr>
    <tr>
<%--        <td rowspan="3">--%>
<%--            <input name="proposal/zs_gain_aptitude_situation" maxlength="100" value="<x:out select="$xmlData/data/proposal/zs_gain_aptitude_situation"/>" />--%>
<%--        </td>--%>
<%--        <td  align="center">--%>
<%--&lt;%&ndash;            <input name="proposal/zs_nation_aptitude" value="<x:out select="$xmlData/data/proposal/zs_nation_aptitude"/>" />&ndash;%&gt;--%>
<%--        </td>--%>
        <td colspan="2" align="center">
            <c:set var="zs2_submit_date"><x:out select="$xmlData/data/proposal/zs2_submit_date" /></c:set>
            <cpt:date id="zs2_submit_date" name="proposal/zs2_submit_date" value="${zs2_submit_date}" ></cpt:date>
        </td>
        <td colspan="2" align="center">
            <input maxlength="100" name="proposal/zs_believe_aptitude_name" value="<x:out select="$xmlData/data/proposal/zs_believe_aptitude_name"/>" />
        </td>
    </tr>
    <tr>
        <td align="center" rowspan="3">省级资质</td>

        <td align="center" colspan="2">认定时间</td>
        <td align="center" colspan="2">认定资质名称</td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <c:set var="zs3_submit_date"><x:out select="$xmlData/data/proposal/zs3_submit_date" /></c:set>
            <cpt:date id="zs3_submit_date" name="proposal/zs3_submit_date" value="${zs3_submit_date}" ></cpt:date>
        </td>
        <td colspan="2" align="center">
            <input maxlength="100" name="proposal/zs_believe_aptitude_names" value="<x:out select="$xmlData/data/proposal/zs_believe_aptitude_names"/>" />
        </td>
    </tr>
</table>

<script type="text/javascript">
    function initTreeValueExt(treeId, treeNode) {
        if ((treeNode && treeNode.isParent)) {
            scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
            $("#" + treeId).val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
            return false;
        }
        var str = treeNode.name;
        var obj = treeNode.parentNode;
        while (obj != null) {
            str = obj.name + "-" + str;
            obj = obj.parentNode;
        }

        $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
    }
</script>